<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@ page session="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<article class="module width_full">
	<header>
		<h3>View Account</h3>
	</header>
	<div class="module_content">
		<form:form modelAttribute="object" action="${object.id}"
			method="post">
			<div class="module_content">
				<fieldset>
					<c:forEach items="${UIModel.getFieldLabels()}" var="item" varStatus="status">
						<jsp:include page="../components/textField.jsp">
							<jsp:param name="inputName" value="${UIModel.getFieldNames()[status.index]}" />
							<jsp:param name="labelValue" value="${UIModel.getFieldLabels()[status.index]}" />
							<jsp:param name="readonly" value="true"/>
						</jsp:include>
					</c:forEach>
				</fieldset>
			</div>
		</form:form>
	</div>
</article>